// 医生单条显示
import 'package:cloud_medicine/model/author_basic_info.dart';

class DoctorItem {
  final AuthorBasicInfo authorBasicInfo;
  final String unit;
  final String abstract;
  final int status_id;

  DoctorItem({
    this.authorBasicInfo,
    this.unit,
    this.abstract,
    this.status_id,
  });

  factory DoctorItem.init(Map<String, dynamic> json) {
    return DoctorItem(
      authorBasicInfo: AuthorBasicInfo.init(json['author']),
      unit: json['unit'],
      abstract: json['abstract'],
      status_id: json['status_id'],
    );
  }
}

List<DoctorItem> DoctorListModel = [
  new DoctorItem.init({
    "author": {
      "id": 1,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户1",
    },
    "unit": "地球中国江苏省镇江市镇江医院",
    "abstract": "摘要1潇洒U型as更新以萨斯给需要修改圣亚西高压线西安高血压啥关系由上向下孝感市雅高血压上线新供应商血夜杀效果要啥关系依噶使用修改鸭锁骨更新以gas西亚斯改一下gas有高血压是小高压所高校要干啥乙型肝炎血夜杀",
    "status_id": 2,
  }),
  new DoctorItem.init({
    "author": {
      "id": 2,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户2",
    },
    "unit": "镇江医院",
    "abstract": "摘要2",
    "status_id": 1,
  }),
  new DoctorItem.init({
    "author": {
      "id": 3,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户3",
    },
    "unit": "镇江医院",
    "abstract": "摘要3",
    "status_id": 1,
  }),
  new DoctorItem.init({
    "author": {
      "id": 4,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户4",
    },
    "unit": "镇江医院",
    "abstract": "摘要1",
    "status_id": 2,
  }),
  new DoctorItem.init({
    "author": {
      "id": 5,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户5",
    },
    "unit": "镇江医院",
    "abstract": "摘要5",
    "status_id": 2,
  }),
  new DoctorItem.init({
    "author": {
      "id": 6,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户6",
    },
    "unit": "镇江医院",
    "abstract": "摘要6",
    "status_id": 3,
  }),
];
